# Contributor: Ángel Castañeda <angel@acsq.me>
# Maintainer: Ángel Castañeda <angel@acsq.me>
pkgname=walk-sor
_commit=70f7a8c104acf109ae810a9b34eb8e8b92b4d27d
pkgver=0_git20190920
pkgrel=1
pkgdesc="Plan 9 style utilities to replace find(1)"
url="https://github.com/google/walk"
arch="all"
license="Apache-2.0"
options="!check" # contains no test suite
depends="bash"
subpackages="$pkgname-doc"
source="$pkgname-$_commit.tar.gz::https://github.com/google/walk/archive/$_commit.tar.gz"
builddir="$srcdir/walk-$_commit"

build() {
	make
}

package() {
	install -Dm755 "$builddir"/walk "$pkgdir"/usr/bin/walk
	install -Dm755 "$builddir"/sor "$pkgdir"/usr/bin/sor
	install -Dm644 "$builddir"/sor.1 "$pkgdir"/usr/share/man/man1/sor.1
	install -Dm644 "$builddir"/walk.1 "$pkgdir"/usr/share/man/man1/walk.1
	install -Dm644 "$builddir"/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="
60f783a0346d2686ace4fbbdbab7bfd85a11ab3d556c77131252214506462de5172c5f8bc72b165e1102f9f1cb9e64315bd42fcf6115cf793220598be7d087c3  walk-sor-70f7a8c104acf109ae810a9b34eb8e8b92b4d27d.tar.gz
"
